import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user
  },
  getters,
  //  Vuex   全局
  state: { 
  	tableStatus:false  ,
  	 	},
   mutations:{  
  	changeStatus(state,status) {  //  重复赋值
        state.tableStatus = status;
      }
  }
})

export default store
